// import 'package:shared_preferences/shared_preferences.dart';

class AppSetting {
  // 需要存储的key
  static const app_theme_color = "AppThemeColor";

  static AppSetting get instance => _getInstance();

  static AppSetting _instance;

  // 构造方法
  AppSetting._internal();

  static _getInstance() {
    if (_instance == null) {
      _instance = AppSetting._internal();
    }
    return _instance;
  }

  Future<void> setAppTheme(int value) async {
    // SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
    // sharedPreferences.setInt(app_theme_color, value);
    return null;
  }

  Future<int> getAppColor() async {
    // SharedPreferences sharedPreferences = await SharedPreferences.getInstance();
    // int value = sharedPreferences.get(app_theme_color);
    return 0;
  }
}
